package com.xie.service.impl;

import com.xie.dao.StudentDao;
import com.xie.domain.Student;
import com.xie.service.StudentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author 本间芽衣子
 * @author As long as you are on the road, there is no place you can’t reach。
 * @program: ssm
 * @date 2021年04月19日 17:31
 */
@Service("studentService")
public class StudentServiceImpl implements StudentService {

    @Autowired
    private StudentDao studentDao;

    @Override
    public Student findStudent(String username, String password) {
        return studentDao.findStudent(username, password);
    }

    @Override
    public Student getStudent(int id) {
        return studentDao.getStudent(id);
    }


}
